#include"Node.h"
#include<iostream>
using namespace std;
int main()
{
	ListNode *head=NULL;
	//head=InitialList();
	//PushList(head,1);
	//PushList(head,3);
	//PushList(head,5);
	//PushList(head,7);
	//PrintList(head);

	ListNode *head1=NULL;
	head1 = InitialList();
	PushList(head1,2);
	PushList(head1,4);
	PushList(head1,6);
	PushList(head1,8);
	//PrintList(head1);

	PrintList(MergeLists(head, head1));

	//ReverseList(head);
	//PrintList(head);

	//cout<<FindKthToTail(head->next, 2)->data<<endl;

	//PrintListReversingly_Recursively(head->next);
	//cout<<endl;

	//PrintListReversingly_Iteratively(head);
	//cout<<endl;

	//DeleteNode(head, Get(head, 1));
	//PrintList(head);

	//InsertList(head,4, 9);
	//PrintList(head);

	/*ListNode *p=Get(head, 5);
	cout<<p<<endl;

	double pDoub=0;
	DeleteList(head, 5,&pDoub);
	cout<<pDoub<<endl;
	PrintList(head);

	ClearList(head);
	cout<<ListEmpty(head)<<endl;*/
	cin.get();
	return 0;
}